package com.duan.cart.feign;

import com.duan.cart.pojo.Cart;
import com.duan.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "cart")
public interface CartFeign {
    /**
     * 删除购物车
     */
    @GetMapping("/cart/delete")
    Result delete(@RequestParam String ids);

    /**
     * 查询购物车
     * @return
     */
    @GetMapping("/cart/findList")
    Result<List<Cart>> selectCart();

}

